package zuoye3;

public class Code13 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		for (int i = 1995; i <= 2017; i++) {
			for (int j = 1; j <= 12; j++) {
				if (j == 1 || j == 3 || j == 5 || j == 7 || j == 8 || j == 10
						|| j == 12) {
					for (int k = 1; k <= 31; k++) {
						System.out.println(i + "-" + j + "-" + k);
					}
				} else if (j == 4 || j == 6 || j == 9 || j == 11) {
					for (int k = 1; k <= 30; k++) {
						System.out.println(i + "-" + j + "-" + k);
					}
				} else if (j == 2 && (i % 4 == 0 && i % 100 != 0)
						|| (i % 400 == 0)) {
					for (int k = 1; k <= 29; k++) {
						System.out.println(i + "-" + j + "-" + k);
					}
				} else if (j == 2 && !(i % 4 == 0 && i % 100 != 0)
						|| (i % 400 == 0)) {
					for (int k = 1; k <= 28; k++) {
						System.out.println(i + "-" + j + "-" + k);
					}
				}
			}
		}
	}
}